package com.sg.gara.services;

import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sg.gara.dao.TmsSyssDAO;
import com.sg.gara.entity.TmsSyss;


@Service("tmsSyssService")
//@Scope(value="singleton",proxyMode=ScopedProxyMode.TARGET_CLASS)
public class TmsSyssServiceImpl implements TmsSyssService {
	
	protected static Logger logger = Logger.getLogger("service");
	
	@Autowired
	private TmsSyssDAO tmsSyssDAO;
	
	@Transactional
	public TmsSyss get(Integer id) {
		// TODO Auto-generated method stub
		logger.debug("hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh");
		return tmsSyssDAO.get(id);
	}

	@Transactional
	public List<TmsSyss> list() {
		// TODO Auto-generated method stub
		return tmsSyssDAO.list();
	}

}
